package cn.china.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;


//读取，扫描等都在这个启动方法这里配置,
@SpringBootApplication
//exclude = DataSourceAutoConfiguration.class
//@ComponentScan({"cn.china.springboot.controller","",""})  手动扫描controller包，当层不在主包的子包位置时可以手动注解
@MapperScan("mapper")//扫描mapper接口
public class SpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootApplication.class, args);
    }

}
